package top.api.service;

import top.api.common.ResponseResult;
import top.api.domain.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 27465
* @description 针对表【sg_comment(评论表)】的数据库操作Service
* @createDate 2023-01-30 15:03:02
*/
public interface CommentService extends IService<Comment> {

    /**
     * 获取评论
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseResult commentList(String type,Long articleId, Integer pageNum, Integer pageSize);

    /**
     * 发布评论
     * @param comment
     * @return
     */
    ResponseResult addComment(Comment comment);
}
